import tipOptions from './TipBox.vue';


export default {
    // Vue.use(options)
    /*
        options 取值为一个固定对象
        {
            install:function(Vue){}
        }
    */
    install(Vue) {
        const TipBox = Vue.extend(tipOptions);
        window.$showTip = Vue.prototype.$showTip = function(msg, time) {
            var tip = new TipBox();
            if (msg) {
                tip.msg = msg;
            }
            if (time) {
                tip.time = time;
            }
            tip.$mount();
        }
    }
}